package com.demo;

public class SwitchTest {

	private int id;
	private String name;
	
	public void switchDemo(int num) {

		System.out.println("This is switch demo");

		// int and enum

		switch (num) {
		case 1:
			System.out.println("input is 1");
			break;
		case 2:
			System.out.println("input is 2");
			break;
		case 3:
			System.out.println("input is 3");
			break;
		default:
			System.out.println("your input is something else");

		}


	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		
		SwitchTest test = new SwitchTest();
		
		test.switchDemo(10);

		test.switchDemo(1);
		test.switchDemo(2);
	}

}
